<!--#include file="AspCms_FormFun.asp" -->
<%CheckAdmin("AspCms_Custom.asp")%>
<!DOCTYPE html>
<html lang="zh-CN" style="min-height: 100%;">
<head>
<title>FormAdd</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />

<link href="https://cdn.bootcss.com/uikit/3.0.0-beta.22/css/uikit.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/jquery.perfect-scrollbar/0.7.0/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="../../css/timoo/fancySelect.css" rel="stylesheet">
<link href="../../css/timoo/timoo.css" rel="stylesheet">

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="../../ueditor/ueditor.config.js"></script>
<script src="../../ueditor/ueditor.all.min.js"> </script>
<script src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="https://cdn.bootcss.com/uikit/3.0.0-beta.22/js/uikit.min.js"></script>
<script src="https://cdn.bootcss.com/uikit/3.0.0-beta.22/js/uikit-icons.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.perfect-scrollbar/0.7.0/js/perfect-scrollbar.jquery.min.js"></script>
<script src="../../js/timoo/icheck.min.js"></script>
<script src="../../js/timoo/fancySelect.js"></script>
<script src="../../js/timoo/timoo.js"></script>
</head>
<body>
<div class="tm-right">
    <div class="main">
        <div class="section setting-company">
            <div class="layout">
                <div class="title">
                    <%if request.QueryString("action")="edit" then%>编辑表单参数<%else%>添加表单参数<%end if%>
                </div>
                <div class="content">
                    <form action="?action=<%if request.QueryString("action")="edit" then%>editsave<%else%>add<%end if%>" method="post" name="frmForm">
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">参数名称</span>
                            </div>
                            <div class="input">
                                <input type="text" maxLength="200" name="FormName" value="<%=FormName%>">
                            </div>
                        </div>
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">字段名称</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="预览：[<span class='field-category'><%=FormCategory%></span><span class='field-link'><%if FormCategory <> "" then%>_<%end if%></span><span class='field-name'><%=FormField%></span>] 。"></i>
                            </div>
                            <div class="input">
                                <input type="text" onKeyUp="document.getElementById('endShow').innerHTML=value" maxLength="200" name="FormField" value="<%=FormField%>">
                            </div>
                        </div>
                        <div class="tm-transition checkbox list tm-display-none">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">是否必须填写</span>
                            </div>
                            <div class="uk-clearfix input">
                                <label for="Form-Not-Null" class="uk-clearfix uk-float-left tm-transition">
                                    <span class="uk-float-left check">
                                        <i class="tm-transition icon" uk-icon="icon: check"></i>
                                    </span>
                                    <span class="uk-float-left">启用</span>
                                    <input id="Form-Not-Null" type="checkbox" name="FormNotNull" <%if FormNotNull then%>checked<%end if%>>
                                </label>
                            </div>
                        </div>
                        <div class="tm-transition radio table-select list hide tm-display-none">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">控件类型</span>
                            </div>
                            <div class="uk-clearfix input">
                                <li class="uk-clearfix uk-float-left input-select transverse-select">
                                    <select class="tm-select" name="FormControlType" onChange="changeFormControlType(this)">
                                        <option value="0" selected>文本</option>
                                    </select>
                                    <script>
                                        frmTab.TabControlType.selectedIndex = <%=FormControlType%>;
                                        
                                        for(var i=0;i<frmForm.FormControlType.options.length;i++){
                                            
                                            if(frmForm.FormControlType.options[i].value == "<%=FormControlType%>")
                                                
                                                frmForm.FormControlType.selectedIndex = i;
                                            
                                        }
                                    </script>
                                </li>
                            </div>
                        </div>
                        <div class="tm-transition textarea list tm-display-none">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">备选内容</span>
                                <i class="tm-transition icon" uk-icon="icon: info" uk-tooltip="pos: right" title="多条内容请用回车隔开。"></i>
                            </div>
                            <div class="input">
                                <textarea type="text" name="FormOptions"><%=FormOptions%></textarea>
                            </div>
                        </div>
                        <div class="tm-transition list">
                            <div class="uk-clearfix tm-transition subject">
                                <span class="uk-float-left">排序</span>
                            </div>
                            <div class="input">
                                <input type="text" maxlength="6" value="0" name="FormOrder">
                            </div>
                        </div>
                        <div class="uk-clearfix tm-transition list submit">
                            <div class="uk-float-left input">
                                <input type="submit" value="<%if request.QueryString("action")="edit" then%>编辑<%else%>添加<%end if%>">
                            </div>
                            <div class="uk-float-left input">
                                <input type="button" value="返回" onClick="history.go(-1)"> 
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>